Hi Azed,
We upgraded the VB Jogger example to VS2008 VB.NET and added the Compile functions to the KMviaVB.dll interface library.
See a screen shot here:
You can download zips of the Example and new KMviaVB source here:
Let me know if I we missed something. Then we'll get this integrated into the next release.
Regards,
TK
Group: DynoMotion |
Message: 270 |
From: Azd Md |
Date: 3/28/2010 |
Subject: Re: KMViaVB.dll missing functions |
Thanks ,that is so helpful. but I got an eror running the Jogger.net it can not find the KMViaVB.dll file. it seems to me I have to place it somewhere or i have to add something to the project properties. Regards Azeddien
--- On Mon, 3/29/10, Tom Kerekes <tk@...> wrote:
From: Tom Kerekes <tk@...> Subject: Re: [DynoMotion] KMViaVB.dll missing functions To: DynoMotion@yahoogroups.com Date: Monday, March 29, 2010, 11:20 AM
Hi Azed,
We upgraded the VB Jogger example to VS2008 VB.NET and added the Compile functions to the KMviaVB.dll interface library.
See a screen shot here:
You can download zips of the Example and new KMviaVB source here:
Let me know if I we missed something. Then we'll get this integrated into the next release.
Regards,
TK
Group: DynoMotion |
Message: 271 |
From: Azd Md |
Date: 3/29/2010 |
Subject: Re: KMViaVB.dll missing functions |
Hi I think the " SetConsoleCallback "' function is still not included. Is it replaced by another function. or is there any other way to receive the printf output in VB applications. Thaks
--- On Mon, 3/29/10, Tom Kerekes <tk@...> wrote:
From: Tom Kerekes <tk@...> Subject: Re: [DynoMotion] KMViaVB.dll missing functions To: DynoMotion@yahoogroups.com Date: Monday, March 29, 2010, 11:20 AM
Hi Azed,
We upgraded the VB Jogger example to VS2008 VB.NET and added the Compile functions to the KMviaVB.dll interface library.
See a screen shot here:
You can download zips of the Example and new KMviaVB source here:
Let me know if I we missed something. Then we'll get this integrated into the next release.
Regards,
TK
Group: DynoMotion |
Message: 273 |
From: Tom Kerekes |
Date: 3/29/2010 |
Subject: Re: KMViaVB.dll missing functions |
Azd,
You might have to build the KMViaVB.dll.
The simplist thing to do is to set the VB project to target the executable into the:
<Install Dir>\KMotion\Debug
directory so it finds all the necessary DLLs.
TK
Group: DynoMotion |
Message: 278 |
From: Azd M |
Date: 4/2/2010 |
Subject: Re: KMViaVB.dll missing functions |
Hi
I tried to include the KM_SetConsoleCallback function myself but I failed. The function returns zero but no data send to my VB callback function. any help please?
Thanks
Azedd
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Azd,
>
> You might have to build the KMViaVB.dll.
>
> The simplist thing to do is to set the VB project to target the executable into the:
>
> <Install Dir>\KMotion\Debug
>
> directory so it finds all the necessary DLLs.
>
> TK
>
>
>
>
> ________________________________
> From: Azd Md <azken98@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sun, March 28, 2010 11:55:57 PM
> Subject: Re: [DynoMotion] KMViaVB.dll missing functions
>
> Â
> Thanks ,that is so helpful.
> but I got an eror running the Jogger.net it can not find the KMViaVB.dll file. it seems to me I have to place it somewhere or i have to add something to the project properties.
> Regards
> Â Azeddien
>
> --- On Mon, 3/29/10, Tom Kerekes <tk@dynomotion. com> wrote:
>
>
> >From: Tom Kerekes <tk@dynomotion. com>
> >Subject: Re: [DynoMotion] KMViaVB.dll missing functions
> >To: DynoMotion@yahoogro ups.com
> >Date: Monday, March 29, 2010, 11:20 AM
> >
> >
> >Â
> >Hi Azed,
> >
> >We upgraded the VB Jogger example to VS2008 VB.NET and added the Compile functions to the KMviaVB.dll interface library.
> >
> >See a screen shot here:
> >
> >http://dynomotion. com/Software/ VB.NET3-28- 10/Jogger. NET.png
> >
> >You can download zips of the Example and new KMviaVB source here:
> >
> >http://dynomotion. com/Software/ VB.NET3-28- 10
> >
> >Let me know if I we missed something. Then we'll get this integrated into the next release.
> >
> >Regards,
> >TK
> >
> >
> >
> >
> ________________________________
> From: Azd M <azken98@yahoo. com>
> >To: DynoMotion@yahoogro ups.com
> >Sent: Sun, March 28, 2010 12:28:59 AM
> >Subject: [DynoMotion] KMViaVB.dll missing functions
> >
> >Â
> >Hi
> >I amtrying to interface Kmotion and Kflop boards via VB.Net.
> >However, I found that some KM functions are not supported in the KMViaVb librayry. " CompileloadCoff" " LoadCoff" are not available. Is there any clue to get those functions working?.
> >Also is it possible to have the library itself be upgraded to VB.Net for VB.Net users? I amanged to make it work for my project after several days. but iam not sure about its reliability.
> >Thanks
> >Azed.
> >
> >
>
|
|
Group: DynoMotion |
Message: 280 |
From: Tom Kerekes |
Date: 4/2/2010 |
Subject: Re: KMViaVB.dll missing functions |
Regards
TK
Group: DynoMotion |
Message: 281 |
From: Azd Md |
Date: 4/2/2010 |
Subject: Re: KMViaVB.dll missing functions |
Thank you very much , this is really helpful. However there is a problem with the setconsolecallback when I tried to execute the thread few times around (4). I have attached the error message. Regards Azedd
--- On Sat, 3/4/10, Tom Kerekes <tk@...> wrote:
From: Tom Kerekes <tk@...> Subject: Re: [DynoMotion] Re: KMViaVB.dll missing functions To: DynoMotion@yahoogroups.com Date: Saturday, 3 April, 2010, 9:13 AM
Hi Azed, We added the Console Callback and display them on the Jogger screen. See a screen shot here: http://dynomotion.com/Software/ VB.NET4-02- 10/Jogger. NET.png
You must push the Set Console Callback to see messages on the screen You can download zips of the Example and new KMviaVB source here: http://dynomotion.com/Software/ VB.NET4-02- 10
Regards
TK
Group: DynoMotion |
Message: 282 |
From: Tom Kerekes |
Date: 4/3/2010 |
Subject: Re: KMViaVB.dll missing functions [1 Attachment] |
Hi Azd,
I can't reproduce the problem. I suppose the garbage collector doesn't realize that we passed the delegate out to the KMviaVB.dll and still is in use so it discards it. If we keep a local reference that might not happen (unless VB is smart enough to realize we never use it). Try adding the line highlighted in red below.
Thanks
TK
Public Function KM_SetConsoleCallback(ByVal bd As Integer) As Integer
If global_KM_Handle = 0 Then
KM_Open()
If global_KM_Handle = 0 Then
KM_SetConsoleCallback = 13
Exit Function
End If
End If
KM_SetConsoleCallback = KMViaVB_SetConsoleCallback(global_KM_Handle, bd, AddressOf ConsoleCallback)
handler = AddressOf ConsoleCallback
End Function
Group: DynoMotion |
Message: 283 |
From: Azd Md |
Date: 4/3/2010 |
Subject: Re: KMViaVB.dll missing functions |
I changed the handler declaration and function function body as below and so far so good.
Dim handler As EventHandler
Public Function KM_SetConsoleCallba ck(ByVal bd As Integer) As Integer
If
global_KM_Handle = 0 Then
KM_Open()
If
global_KM_Handle = 0 Then
KM_SetConsoleCallba ck = 13
Exit Function
End If
End If
handler = AddressOf ConsoleCallback
KM_SetConsoleCallba ck =
KMViaVB_SetConsoleC allback(global_ KM_Handle, bd, handler)
End Function
--- On Sun, 4/4/10, Tom Kerekes <tk@...> wrote:
From: Tom Kerekes <tk@...> Subject: Re: [DynoMotion] Re: KMViaVB.dll missing functions To: DynoMotion@yahoogroups.com Date: Sunday, 4 April, 2010, 1:40 AM
Hi Azd,
I can't reproduce the problem. I suppose the garbage collector doesn't realize that we passed the delegate out to the KMviaVB.dll and still is in use so it discards it. If we keep a local reference that might not happen (unless VB is smart enough to realize we never use it). Try adding the line highlighted in red below.
Thanks
TK
Public Function KM_SetConsoleCallba ck(ByVal bd As Integer) As Integer
If global_KM_Handle = 0 Then
KM_Open()
If global_KM_Handle = 0 Then
KM_SetConsoleCallba ck = 13
Exit Function
End If
End If
KM_SetConsoleCallba ck = KMViaVB_SetConsoleC allback(global_ KM_Handle, bd, AddressOf ConsoleCallback)
handler = AddressOf ConsoleCallback
End Function
|
| | | |
|
| | | | | |
|
| |
|
| | | |